﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SMSDemo
{
    public partial class sendsms : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string number = Request.QueryString["number"];
            string message = Request.QueryString["message"];
            string owner = Request.QueryString["owner"];

            RoutoSMSTelecom routo = new RoutoSMSTelecom();

            routo.SetUser("1163659");
            routo.SetPass("fvhpndw3");
            routo.SetNumber(number);
            routo.SetOwnNumber(owner);
            routo.SetType("SMS");
            routo.SetMessage(message);

            string header = routo.Send();

            sms.InnerText = header;
        }
    }
}
